<?php 
session_start();
if(! isset($_SESSION['mobile'])){
	echo "<script>window.location.href='../view/accountPassword_login.v.php';</script>";
	$_SESSION['userurl'] = $_SERVER['REQUEST_URI'];
	exit;
}
 ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>Document</title>
	<style>
		body{
			margin :0px;
			padding:0px; 
		}

		@media screen and (min-device-width:321px){
			header{
				background:red;
			}		

		}
		ul{
			margin: 0px;
			padding: 0px;
			list-style: none;
		}
	</style>
	<link rel="stylesheet" href="./css/myOrchard.css" />
</head>

<body>
	<header id = "">

	</header>
	<section id = "header_search_box">
		<a href="./index.v.php" id = "header_search_index"></a>
		<span id ="span_myOrchard">我的果园</span>
		<a href="./shoppingCart.v.php" id = "f_shopcar"></a>
	</section>

	<section id ="sec_body">
		<div id ="user">
			<span>
				<img id="userPic" src="./images/default_userpic.png">
			</span>	
			<span id="phoneNum">
				<?php 
					if(isset($_SESSION['mobile'])){
						echo $_SESSION['mobile'];
					}else{
						echo "游客";	
					}
				 ?>
			</span>
		</div>
		<ul id= "userList">
			<li>
				<div class="m_user_item">
                       <a id="m_user_item1" href="#">
                       		我的订单
                    		<img src="./images/m_user_right_arrow.gif" style="float: right;margin: 4px 3px;">
                       </a>
                </div>
                <div class="m_user_item">
                       <a id="m_user_item2" href="javascript:void(0);">
                       		绑定手机
                       		<span style="margin-left: 133px; color: #f6ab00;">已绑定</span>
                    		<img src="./images/m_user_right_arrow.gif" style="float: right;margin: 4px 3px;">
                       </a>
                </div>
			</li>
			<li>
				<div class="m_user_item">
					   <a id="m_user_item3" href="#">
                       		会员等级
                    		<img src="./images/m_user_right_level.gif" style="float: right;margin: -2px 0px;">
                       </a>                    
                </div>
                <div class="m_user_item">
                       <a id="m_user_item4" href="#">
                       		积分
                       		<span style="margin-left: 206px; color: #f6ab00;">0</span>
                       </a>   
                </div>
                <div class="m_user_item">
                       <a id="m_user_item5" href="#">
                       		余额
                       		<span style="margin-left: 170px; color: #f6ab00;">￥0.00</span>
                       </a>   
                </div>
                <div class="m_user_item">
                       <a id="m_user_item5" href="#">
                       		优惠券
                       		<img src="./images/m_user_right_arrow.gif" style="float: right;margin: 4px 3px;">
                       </a>   
                </div>
                <div class="m_user_item">
                       <a id="m_user_item5" href="#">
                       		我的赠品
                       		<img src="./images/m_user_right_arrow.gif" style="float: right;margin: 4px 3px;">
                       </a>   
                </div>                                
			</li>
			<li>
				<div class="m_user_item">
                       <a id="m_user_item5" href="#" class="user-order">
	                       关于我们
	                       <img src="./images/m_user_right_arrow.gif" style="float: right;margin: 4px 3px;">
                       </a>
                </div>
			</li>
		</ul>
		<div class="m_user_quit">
			<button onclick="logout()" type="button" class="btn_block ">
			注 销
			</button>
		</div>
	</section>
<!-- 	<footer id="category_footer">
		<p>
			下载果园App，立享专属优惠<br />
			天天到家，2小时闪电送达
		</p>
		<span id="app_btn">立刻体验</span>
		<span id="app_close"></span>
	</footer> -->
	<script>
		function logout(){
			window.location.href='../api/userOutApi.php';
		}
	</script>
</body>
</html>